import java.awt.*;
import javax.swing.*;
import javax.swing.JSpinner;
import java.util.Calendar;
import java.util.Date;
public class sri6 extends JFrame
{
public sri6()
{
super("Month Spinner");
setSize(200,100);
setDefaultCloseOperation(EXIT_ON_CLOSE);
Container c=getContentPane();
c.setLayout(new FlowLayout(FlowLayout.LEFT,4,4));
c.add(new JLabel("EXpiration Date:"));
Date today=new Date();
JSpinner s=new JSpinner(new SpinnerDateModel(today,null,null,Calendar.MONTH));
c.add(s);
setVisible(true);
}
public static void main(String args[])
{
new sri6();
}
}